<?php

namespace WebExpres\BackendBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
//use WebExpres\BackendBundle\BackendBundle;
use WebExpres\ConfigBundle\Controller\DefaultController;

class BackendController extends DefaultController
{
    
    public function indexAction()
    {
        
        $Configuracio = $this->controlOpcio();
        //$HotelsPublicats = $this->consultaHotelsPublicats(0);
        $HotelsPublicats = $this->consultaGetHoteles(0);

        return $this->render('BackendBundle:Default:homeAdmin.html.twig', array("configuracio" => $Configuracio, "hotelspublicats" => $HotelsPublicats));
        
    }
    
}
